import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)


import Login from '../views/Login'
const routes = [
  {
    path:"/",
    redirect:"/login",
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
    path: "/user",
    component: ()=>import("../components/user/UserComponent")
  },
  {
    path: "/my/huida",
    component: ()=>import("../components/my/huida")
  },
  // {
  //   path: "/my/zixun",
  //   component: ()=>import("../components/my/zixun")
  // },
  {
    path: "/my/kechengshoucang",
    component: ()=>import("../components/my/kechengshoucang")
  },
  // {
  //   path: "/my/tongzhi",
  //   component:()=>import("../components/my/tongzhi")
  // },
  {
    path: "/xitong/wenzhang",
    component:()=>import("../components/xitong/wenzhang")
  },
  {
    path:"/xitong/lunbotu",
    component:()=>import("../components/xitong/lunbotu"),
  },
  {
    path:"/xitong/xinliceping",
    component:()=>import("../components/xitong/xinliceping"),
  },
  {
    path:"/xitong/gongyi",
    component:()=>import("../components/xitong/gongyi"),
  },
  {
    path:"/zixunshi/zixunshixinxi",
    component:()=>import("../components/zixunshi/zixunshixinxi"),
  },
  {
    path:"/zixunshi/shanchanglingyu",
    component:()=>import("../components/zixunshi/shanchanglingyu"),
  },
  {
    path:"/zixunshi/shoufeibiaozhun",
    component:()=>import("../components/zixunshi/shoufeibiaozhun"),
  },
  {
    path:"/kecheng/kechengxinxi",
    component:()=>import("../components/kecheng/kechengxinxi"),
  },
  {
    path:"/kecheng/shoucang",
    component:()=>import("../components/kecheng/shoucang"),
  },


]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
